<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Qwt User&#39;s Guide: qwt_spline_polynomial.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Qwt User&#39;s Guide
   &#160;<span id="projectnumber">6.2.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('qwt__spline__polynomial_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">qwt_spline_polynomial.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/******************************************************************************</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Qwt Widget Library</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * Copyright (C) 1997   Josef Wilgen</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * Copyright (C) 2002   Uwe Rathmann</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * This library is free software; you can redistribute it and/or</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * modify it under the terms of the Qwt License, Version 1.0</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *****************************************************************************/</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160; </div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#ifndef QWT_SPLINE_POLYNOMIAL_H</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#define QWT_SPLINE_POLYNOMIAL_H</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160; </div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &quot;qwt_global.h&quot;</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160; </div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#include &lt;qpoint.h&gt;</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#include &lt;qmetatype.h&gt;</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160; </div>
<div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="class_qwt_spline_polynomial.html">   30</a></span>&#160;<span class="keyword">class </span>QWT_EXPORT <a class="code" href="class_qwt_spline_polynomial.html">QwtSplinePolynomial</a></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;{</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    <a class="code" href="class_qwt_spline_polynomial.html">QwtSplinePolynomial</a>( <span class="keywordtype">double</span> c3 = 0.0, <span class="keywordtype">double</span> c2 = 0.0, <span class="keywordtype">double</span> c1 = 0.0 );</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160; </div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    <span class="keywordtype">bool</span> operator==( <span class="keyword">const</span> <a class="code" href="class_qwt_spline_polynomial.html">QwtSplinePolynomial</a>&amp; ) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;    <span class="keywordtype">bool</span> operator!=( <span class="keyword">const</span> <a class="code" href="class_qwt_spline_polynomial.html">QwtSplinePolynomial</a>&amp; ) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160; </div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    <span class="keywordtype">double</span> valueAt( <span class="keywordtype">double</span> x ) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    <span class="keywordtype">double</span> slopeAt( <span class="keywordtype">double</span> x ) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    <span class="keywordtype">double</span> curvatureAt( <span class="keywordtype">double</span> x ) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160; </div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    <span class="keyword">static</span> <a class="code" href="class_qwt_spline_polynomial.html">QwtSplinePolynomial</a> fromSlopes(</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;        <span class="keyword">const</span> QPointF&amp; p1, <span class="keywordtype">double</span> m1,</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;        <span class="keyword">const</span> QPointF&amp; p2, <span class="keywordtype">double</span> m2 );</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160; </div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    <span class="keyword">static</span> <a class="code" href="class_qwt_spline_polynomial.html">QwtSplinePolynomial</a> fromSlopes(</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;        <span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y, <span class="keywordtype">double</span> m1, <span class="keywordtype">double</span> m2 );</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160; </div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    <span class="keyword">static</span> <a class="code" href="class_qwt_spline_polynomial.html">QwtSplinePolynomial</a> fromCurvatures(</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;        <span class="keyword">const</span> QPointF&amp; p1, <span class="keywordtype">double</span> cv1,</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;        <span class="keyword">const</span> QPointF&amp; p2, <span class="keywordtype">double</span> cv2 );</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160; </div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    <span class="keyword">static</span> <a class="code" href="class_qwt_spline_polynomial.html">QwtSplinePolynomial</a> fromCurvatures(</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;        <span class="keywordtype">double</span> dx, <span class="keywordtype">double</span> dy, <span class="keywordtype">double</span> cv1, <span class="keywordtype">double</span> cv2 );</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160; </div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="class_qwt_spline_polynomial.html#ac2a022dc826f5e08979e43ec2ddcfa42">   58</a></span>&#160;    <span class="keywordtype">double</span> <a class="code" href="class_qwt_spline_polynomial.html#ac2a022dc826f5e08979e43ec2ddcfa42">c3</a>;</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160; </div>
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="class_qwt_spline_polynomial.html#ac99f8adbf13b198c48ed8805d4078bd5">   61</a></span>&#160;    <span class="keywordtype">double</span> <a class="code" href="class_qwt_spline_polynomial.html#ac99f8adbf13b198c48ed8805d4078bd5">c2</a>;</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160; </div>
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="class_qwt_spline_polynomial.html#ab7a4dd72809be3e6648bafcf6871dd32">   64</a></span>&#160;    <span class="keywordtype">double</span> <a class="code" href="class_qwt_spline_polynomial.html#ab7a4dd72809be3e6648bafcf6871dd32">c1</a>;</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;};</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160; </div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;Q_DECLARE_TYPEINFO( <a class="code" href="class_qwt_spline_polynomial.html">QwtSplinePolynomial</a>, Q_MOVABLE_TYPE );</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;Q_DECLARE_METATYPE( <a class="code" href="class_qwt_spline_polynomial.html">QwtSplinePolynomial</a> )</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160; </div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160; </div>
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="class_qwt_spline_polynomial.html#a22d45d509397f700f945c5ba0caa87dd">   77</a></span>&#160;inline <a class="code" href="class_qwt_spline_polynomial.html">QwtSplinePolynomial</a>::<a class="code" href="class_qwt_spline_polynomial.html">QwtSplinePolynomial</a>( <span class="keywordtype">double</span> a3, <span class="keywordtype">double</span> a2, <span class="keywordtype">double</span> a1 )</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    : c3( a3 )</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    , c2( a2 )</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    , c1( a1 )</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;{</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;}</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160; </div>
<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="class_qwt_spline_polynomial.html#a4c66b68af39e51183f82c1940eb14517">   88</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="class_qwt_spline_polynomial.html#a4c66b68af39e51183f82c1940eb14517">QwtSplinePolynomial::operator==</a>( <span class="keyword">const</span> <a class="code" href="class_qwt_spline_polynomial.html">QwtSplinePolynomial</a>&amp; other )<span class="keyword"> const</span></div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    <span class="keywordflow">return</span> ( <a class="code" href="class_qwt_spline_polynomial.html#ac2a022dc826f5e08979e43ec2ddcfa42">c3</a> == other.<a class="code" href="class_qwt_spline_polynomial.html#ac2a022dc826f5e08979e43ec2ddcfa42">c3</a> ) &amp;&amp; ( <a class="code" href="class_qwt_spline_polynomial.html#ac99f8adbf13b198c48ed8805d4078bd5">c2</a> == other.<a class="code" href="class_qwt_spline_polynomial.html#ac99f8adbf13b198c48ed8805d4078bd5">c2</a> ) &amp;&amp; ( <a class="code" href="class_qwt_spline_polynomial.html#ab7a4dd72809be3e6648bafcf6871dd32">c1</a> == other.<a class="code" href="class_qwt_spline_polynomial.html#ab7a4dd72809be3e6648bafcf6871dd32">c1</a> );</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;}</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160; </div>
<div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="class_qwt_spline_polynomial.html#a89a4b31dcfc005140e439312ff47be29">   97</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="class_qwt_spline_polynomial.html#a89a4b31dcfc005140e439312ff47be29">QwtSplinePolynomial::operator!=</a>( <span class="keyword">const</span> <a class="code" href="class_qwt_spline_polynomial.html">QwtSplinePolynomial</a>&amp; other )<span class="keyword"> const</span></div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    <span class="keywordflow">return</span> ( !( *<span class="keyword">this</span> == other ) );</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;}</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160; </div>
<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="class_qwt_spline_polynomial.html#a31aa00624298eb0f7f0796d6d58ab38e">  108</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">double</span> <a class="code" href="class_qwt_spline_polynomial.html#a31aa00624298eb0f7f0796d6d58ab38e">QwtSplinePolynomial::valueAt</a>( <span class="keywordtype">double</span> x )<span class="keyword"> const</span></div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    <span class="keywordflow">return</span> ( ( ( <a class="code" href="class_qwt_spline_polynomial.html#ac2a022dc826f5e08979e43ec2ddcfa42">c3</a> * x ) + <a class="code" href="class_qwt_spline_polynomial.html#ac99f8adbf13b198c48ed8805d4078bd5">c2</a> ) * x + <a class="code" href="class_qwt_spline_polynomial.html#ab7a4dd72809be3e6648bafcf6871dd32">c1</a> ) * x;</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;}</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160; </div>
<div class="line"><a name="l00119"></a><span class="lineno"><a class="line" href="class_qwt_spline_polynomial.html#a136975ae7191fd91b5b9ef5297b36299">  119</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">double</span> <a class="code" href="class_qwt_spline_polynomial.html#a136975ae7191fd91b5b9ef5297b36299">QwtSplinePolynomial::slopeAt</a>( <span class="keywordtype">double</span> x )<span class="keyword"> const</span></div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;    <span class="keywordflow">return</span> ( 3.0 * <a class="code" href="class_qwt_spline_polynomial.html#ac2a022dc826f5e08979e43ec2ddcfa42">c3</a> * x + 2.0 * <a class="code" href="class_qwt_spline_polynomial.html#ac99f8adbf13b198c48ed8805d4078bd5">c2</a> ) * x + <a class="code" href="class_qwt_spline_polynomial.html#ab7a4dd72809be3e6648bafcf6871dd32">c1</a>;</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;}</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160; </div>
<div class="line"><a name="l00130"></a><span class="lineno"><a class="line" href="class_qwt_spline_polynomial.html#acf18254f01c445b3af637351a1da1323">  130</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">double</span> <a class="code" href="class_qwt_spline_polynomial.html#acf18254f01c445b3af637351a1da1323">QwtSplinePolynomial::curvatureAt</a>( <span class="keywordtype">double</span> x )<span class="keyword"> const</span></div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;    <span class="keywordflow">return</span> 6.0 * <a class="code" href="class_qwt_spline_polynomial.html#ac2a022dc826f5e08979e43ec2ddcfa42">c3</a> * x + 2.0 * <a class="code" href="class_qwt_spline_polynomial.html#ac99f8adbf13b198c48ed8805d4078bd5">c2</a>;</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;}</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160; </div>
<div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="class_qwt_spline_polynomial.html#a2f7c84dbfe6354d771d15fa95934ea07">  147</a></span>&#160;<span class="keyword">inline</span> <a class="code" href="class_qwt_spline_polynomial.html">QwtSplinePolynomial</a> <a class="code" href="class_qwt_spline_polynomial.html#a2f7c84dbfe6354d771d15fa95934ea07">QwtSplinePolynomial::fromSlopes</a>(</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;    <span class="keyword">const</span> QPointF&amp; p1, <span class="keywordtype">double</span> m1, <span class="keyword">const</span> QPointF&amp; p2, <span class="keywordtype">double</span> m2 )</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;{</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="class_qwt_spline_polynomial.html#a2f7c84dbfe6354d771d15fa95934ea07">fromSlopes</a>( p2.x() - p1.x(), p2.y() - p1.y(), m1, m2 );</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;}</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160; </div>
<div class="line"><a name="l00164"></a><span class="lineno"><a class="line" href="class_qwt_spline_polynomial.html#a3af2134cbccfffc293669bc6e9417897">  164</a></span>&#160;<span class="keyword">inline</span> <a class="code" href="class_qwt_spline_polynomial.html">QwtSplinePolynomial</a> <a class="code" href="class_qwt_spline_polynomial.html#a2f7c84dbfe6354d771d15fa95934ea07">QwtSplinePolynomial::fromSlopes</a>(</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;    <span class="keywordtype">double</span> dx, <span class="keywordtype">double</span> dy, <span class="keywordtype">double</span> m1, <span class="keywordtype">double</span> m2 )</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;{</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">double</span> <a class="code" href="class_qwt_spline_polynomial.html#ac99f8adbf13b198c48ed8805d4078bd5">c2</a> = ( 3.0 * dy / dx - 2 * m1 - m2 ) / dx;</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">double</span> <a class="code" href="class_qwt_spline_polynomial.html#ac2a022dc826f5e08979e43ec2ddcfa42">c3</a> = ( ( m2 - m1 ) / dx - 2.0 * <a class="code" href="class_qwt_spline_polynomial.html#ac99f8adbf13b198c48ed8805d4078bd5">c2</a> ) / ( 3.0 * dx );</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160; </div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="class_qwt_spline_polynomial.html#a22d45d509397f700f945c5ba0caa87dd">QwtSplinePolynomial</a>( <a class="code" href="class_qwt_spline_polynomial.html#ac2a022dc826f5e08979e43ec2ddcfa42">c3</a>, <a class="code" href="class_qwt_spline_polynomial.html#ac99f8adbf13b198c48ed8805d4078bd5">c2</a>, m1 );</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;}</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160; </div>
<div class="line"><a name="l00185"></a><span class="lineno"><a class="line" href="class_qwt_spline_polynomial.html#a88432efffb0b03c266f8673e0d58c36e">  185</a></span>&#160;<span class="keyword">inline</span> <a class="code" href="class_qwt_spline_polynomial.html">QwtSplinePolynomial</a> <a class="code" href="class_qwt_spline_polynomial.html#a88432efffb0b03c266f8673e0d58c36e">QwtSplinePolynomial::fromCurvatures</a>(</div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;    <span class="keyword">const</span> QPointF&amp; p1, <span class="keywordtype">double</span> cv1, <span class="keyword">const</span> QPointF&amp; p2, <span class="keywordtype">double</span> cv2 )</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;{</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="class_qwt_spline_polynomial.html#a88432efffb0b03c266f8673e0d58c36e">fromCurvatures</a>( p2.x() - p1.x(), p2.y() - p1.y(), cv1, cv2 );</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;}</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160; </div>
<div class="line"><a name="l00202"></a><span class="lineno"><a class="line" href="class_qwt_spline_polynomial.html#a92fa155fb36dd364ecd58ff5345f3146">  202</a></span>&#160;<span class="keyword">inline</span> <a class="code" href="class_qwt_spline_polynomial.html">QwtSplinePolynomial</a> <a class="code" href="class_qwt_spline_polynomial.html#a88432efffb0b03c266f8673e0d58c36e">QwtSplinePolynomial::fromCurvatures</a>(</div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;    <span class="keywordtype">double</span> dx, <span class="keywordtype">double</span> dy, <span class="keywordtype">double</span> cv1, <span class="keywordtype">double</span> cv2 )</div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;{</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">double</span> <a class="code" href="class_qwt_spline_polynomial.html#ac2a022dc826f5e08979e43ec2ddcfa42">c3</a> = ( cv2 - cv1 ) / ( 6.0 * dx );</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">double</span> <a class="code" href="class_qwt_spline_polynomial.html#ac99f8adbf13b198c48ed8805d4078bd5">c2</a> = 0.5 * cv1;</div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">double</span> <a class="code" href="class_qwt_spline_polynomial.html#ab7a4dd72809be3e6648bafcf6871dd32">c1</a> = dy / dx - ( <a class="code" href="class_qwt_spline_polynomial.html#ac2a022dc826f5e08979e43ec2ddcfa42">c3</a> * dx + <a class="code" href="class_qwt_spline_polynomial.html#ac99f8adbf13b198c48ed8805d4078bd5">c2</a> ) * dx;</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160; </div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="class_qwt_spline_polynomial.html#a22d45d509397f700f945c5ba0caa87dd">QwtSplinePolynomial</a>( <a class="code" href="class_qwt_spline_polynomial.html#ac2a022dc826f5e08979e43ec2ddcfa42">c3</a>, <a class="code" href="class_qwt_spline_polynomial.html#ac99f8adbf13b198c48ed8805d4078bd5">c2</a>, <a class="code" href="class_qwt_spline_polynomial.html#ab7a4dd72809be3e6648bafcf6871dd32">c1</a> );</div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;}</div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160; </div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;<span class="preprocessor">#ifndef QT_NO_DEBUG_STREAM</span></div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160; </div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;<span class="keyword">class </span>QDebug;</div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;QWT_EXPORT QDebug operator&lt;&lt;( QDebug, <span class="keyword">const</span> <a class="code" href="class_qwt_spline_polynomial.html">QwtSplinePolynomial</a>&amp; );</div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160; </div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160; </div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="aclass_qwt_spline_polynomial_html"><div class="ttname"><a href="class_qwt_spline_polynomial.html">QwtSplinePolynomial</a></div><div class="ttdoc">A cubic polynomial without constant term.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__spline__polynomial_8h_source.html#l00030">qwt_spline_polynomial.h:31</a></div></div>
<div class="ttc" id="aclass_qwt_spline_polynomial_html_a136975ae7191fd91b5b9ef5297b36299"><div class="ttname"><a href="class_qwt_spline_polynomial.html#a136975ae7191fd91b5b9ef5297b36299">QwtSplinePolynomial::slopeAt</a></div><div class="ttdeci">double slopeAt(double x) const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__spline__polynomial_8h_source.html#l00119">qwt_spline_polynomial.h:119</a></div></div>
<div class="ttc" id="aclass_qwt_spline_polynomial_html_a22d45d509397f700f945c5ba0caa87dd"><div class="ttname"><a href="class_qwt_spline_polynomial.html#a22d45d509397f700f945c5ba0caa87dd">QwtSplinePolynomial::QwtSplinePolynomial</a></div><div class="ttdeci">QwtSplinePolynomial(double c3=0.0, double c2=0.0, double c1=0.0)</div><div class="ttdoc">Constructor.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__spline__polynomial_8h_source.html#l00077">qwt_spline_polynomial.h:77</a></div></div>
<div class="ttc" id="aclass_qwt_spline_polynomial_html_a2f7c84dbfe6354d771d15fa95934ea07"><div class="ttname"><a href="class_qwt_spline_polynomial.html#a2f7c84dbfe6354d771d15fa95934ea07">QwtSplinePolynomial::fromSlopes</a></div><div class="ttdeci">static QwtSplinePolynomial fromSlopes(const QPointF &amp;p1, double m1, const QPointF &amp;p2, double m2)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__spline__polynomial_8h_source.html#l00147">qwt_spline_polynomial.h:147</a></div></div>
<div class="ttc" id="aclass_qwt_spline_polynomial_html_a31aa00624298eb0f7f0796d6d58ab38e"><div class="ttname"><a href="class_qwt_spline_polynomial.html#a31aa00624298eb0f7f0796d6d58ab38e">QwtSplinePolynomial::valueAt</a></div><div class="ttdeci">double valueAt(double x) const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__spline__polynomial_8h_source.html#l00108">qwt_spline_polynomial.h:108</a></div></div>
<div class="ttc" id="aclass_qwt_spline_polynomial_html_a4c66b68af39e51183f82c1940eb14517"><div class="ttname"><a href="class_qwt_spline_polynomial.html#a4c66b68af39e51183f82c1940eb14517">QwtSplinePolynomial::operator==</a></div><div class="ttdeci">bool operator==(const QwtSplinePolynomial &amp;) const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__spline__polynomial_8h_source.html#l00088">qwt_spline_polynomial.h:88</a></div></div>
<div class="ttc" id="aclass_qwt_spline_polynomial_html_a88432efffb0b03c266f8673e0d58c36e"><div class="ttname"><a href="class_qwt_spline_polynomial.html#a88432efffb0b03c266f8673e0d58c36e">QwtSplinePolynomial::fromCurvatures</a></div><div class="ttdeci">static QwtSplinePolynomial fromCurvatures(const QPointF &amp;p1, double cv1, const QPointF &amp;p2, double cv2)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__spline__polynomial_8h_source.html#l00185">qwt_spline_polynomial.h:185</a></div></div>
<div class="ttc" id="aclass_qwt_spline_polynomial_html_a89a4b31dcfc005140e439312ff47be29"><div class="ttname"><a href="class_qwt_spline_polynomial.html#a89a4b31dcfc005140e439312ff47be29">QwtSplinePolynomial::operator!=</a></div><div class="ttdeci">bool operator!=(const QwtSplinePolynomial &amp;) const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__spline__polynomial_8h_source.html#l00097">qwt_spline_polynomial.h:97</a></div></div>
<div class="ttc" id="aclass_qwt_spline_polynomial_html_ab7a4dd72809be3e6648bafcf6871dd32"><div class="ttname"><a href="class_qwt_spline_polynomial.html#ab7a4dd72809be3e6648bafcf6871dd32">QwtSplinePolynomial::c1</a></div><div class="ttdeci">double c1</div><div class="ttdoc">coefficient of the linear summand</div><div class="ttdef"><b>Definition:</b> <a href="qwt__spline__polynomial_8h_source.html#l00064">qwt_spline_polynomial.h:64</a></div></div>
<div class="ttc" id="aclass_qwt_spline_polynomial_html_ac2a022dc826f5e08979e43ec2ddcfa42"><div class="ttname"><a href="class_qwt_spline_polynomial.html#ac2a022dc826f5e08979e43ec2ddcfa42">QwtSplinePolynomial::c3</a></div><div class="ttdeci">double c3</div><div class="ttdoc">coefficient of the cubic summand</div><div class="ttdef"><b>Definition:</b> <a href="qwt__spline__polynomial_8h_source.html#l00058">qwt_spline_polynomial.h:58</a></div></div>
<div class="ttc" id="aclass_qwt_spline_polynomial_html_ac99f8adbf13b198c48ed8805d4078bd5"><div class="ttname"><a href="class_qwt_spline_polynomial.html#ac99f8adbf13b198c48ed8805d4078bd5">QwtSplinePolynomial::c2</a></div><div class="ttdeci">double c2</div><div class="ttdoc">coefficient of the quadratic summand</div><div class="ttdef"><b>Definition:</b> <a href="qwt__spline__polynomial_8h_source.html#l00061">qwt_spline_polynomial.h:61</a></div></div>
<div class="ttc" id="aclass_qwt_spline_polynomial_html_acf18254f01c445b3af637351a1da1323"><div class="ttname"><a href="class_qwt_spline_polynomial.html#acf18254f01c445b3af637351a1da1323">QwtSplinePolynomial::curvatureAt</a></div><div class="ttdeci">double curvatureAt(double x) const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__spline__polynomial_8h_source.html#l00130">qwt_spline_polynomial.h:130</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><b>qwt_spline_polynomial.h</b></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
